package com.tt.entity.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author sugarttt
 * @version 1.0
 * @since 2023-03-07 14:33:13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("movie_comment")
public class MovieCommentPO implements Serializable {


    private static final long serialVersionUID = 1L;

    /**
     * 主键自增id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 电影id
     */
    @TableField("movie_id")
    private Long movieId;

    /**
     * 头像地址
     */
    @TableField(value = "avatar", insertStrategy = FieldStrategy.NOT_EMPTY)
    private String avatar;

    /**
     * 姓名
     */
    @TableField("`name`")
    private String name;

   /**
     * 发布时间
     */
    @TableField("`post_time`")
    private String postTime;

   /**
     * 标题
     */
    @TableField("`title`")
    private String title;

    /**
     * 评论
     */
    @TableField("`content`")
    private String content;
}
